docs: Annotate XML fragments as such
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 28 Jan 2021 15:42:22 +0000 (15:42 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 29 Jan 2021 16:31:10 +0000 (16:31 +0000)
This way we can get syntax highlighting.

gtk/gtkwidget.c

index b7c0bc3ae41b488a07b2d23afe37530927599763..2904fa569a7ec5bdffb1fe49983e88b67ab17ace 100644 (file)
  * If the parent widget uses a #GtkLayoutManager, #GtkWidget supports a
  * custom `<layout>` element, used to define layout properties:
  *
- * |[
+ * |[<!-- language="xml" -->
  * <object class="MyGrid" id="grid1">
  *   <child>
  *     <object class="GtkLabel" id="label1">
  *
  * GtkWidget allows style information such as style classes to
  * be associated with widgets, using the custom `<style>` element:
- * |[
+ *
+ * |[<!-- language="xml" -->
  * <object class="GtkButton" id="button1">
  *   <style>
  *     <class name="my-special-button-class"/>
  *
  * GtkWidget allows defining accessibility information, such as properties,
  * relations, and states, using the custom `<accessibility>` element:
- * |[
+ *
+ * |[<!-- language="xml" -->
  * <object class="GtkButton" id="button1">
  *   <accessibility>
  *     <property name="label">Download</property>
  * `<template>` tag.
  *
  * An example of a GtkBuilder Template Definition:
- * |[
+ *
+ * |[<!-- language="xml" -->
  * <interface>
  *   <template class="FooWidget" parent="GtkBox">
  *     <property name="orientation">horizontal</property>